<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li class="on"><span>审核管理</span></li>
                </ul>
                <div class="rightWord"><a href="{:U('Examine/index')}">人员列表</a> &gt;&gt; 编辑人员</div>
            </div>
            <form id="info_form" action="{:U('Examine/edit')}" method="post" >
            <div class="con_div">
                <ul class="formList width2 list_ul list_mp">
                    <li class="dict-info">
                        <label >会员头像：</label>
                        <span><img src="{$info.head_ico}"/></span>
                    </li>
                    <li>
                        <label>用户名：</label>
                        <input type="text"  name="data[username]" class="inputStyle width3" value="{$info.username}">
                    </li>
                    <li>
                        <label>邮箱：</label>
                        <input type="text"  name="data[email]" class="inputStyle width3" value="{$info.email}">
                    </li>
                    <li>
                        <label>手机号：</label>
                        <input type="text"  name="data[mobile]" class="inputStyle width3" value="{$info.mobile}">
                    </li>
                    <li>
                        <label>积分：</label>
                        <input type="text"  name="account[point]" class="inputStyle width2" value="{$info.point}">
                        <label>金额：</label>
                        <input type="text"  name="account[blance]" class="inputStyle width2" value="{$info.blance}">
                    </li>

                    <li>
                        <label>真实姓名：</label>
                        <input type="text"  name="info[true_name]" class="inputStyle width3" value="{$info.true_name}">
                    </li>
                    <li>
                        <label>性别：</label>
                        <label>
                            <input type="radio" name="info[sex]" class="radio_style" value="1" <if condition="$info.sex eq 1">checked</if> >
                            男
                        </label>
                        <label>
                            <input type="radio" name="info[sex]" class="radio_style" value="2" <if condition="$info.sex eq 2">checked</if> >
                            女
                        </label>
                    </li>
                    <li>
                        <label>证件类型：</label>
                        <select class="selectStyle" name="info[id_type]">
                            <option value="0">--请选择--</option>
                            <option value="1" <if condition="$info.id_type eq 1">selected</if> >身份证</option>
                            <option value="2" <if condition="$info.id_type eq 2">selected</if> >工作证</option>
                            <option value="3" <if condition="$info.id_type eq 3">selected</if> >军官证</option>
                            <option value="4" <if condition="$info.id_type eq 4">selected</if> >学生证</option>
                            <option value="5" <if condition="$info.id_type eq 5">selected</if> >护照</option>
                        </select>
                    </li>
                    <li>
                        <label>证件号：</label>
                        <input type="text"  name="info[id_code]" class="inputStyle width3" value="{$info.id_code}">
                    </li>
                    <li>
                        <label>联系地址：</label>
                        <input type="text"  name="info[address]" id="title" class="inputStyle width3" value="{$info.address}">
                    </li>

                    <li id="info-group">
                        <label>选择分组：</label>
                        <input type="text"  name="group-title" class="inputStyle width2 required" placeholder="输入分店名称" id="autocomplete" value="{$group.title}">
                        <input type="hidden"  name="info[group]" value="{$group.id}" id="gid" min="1">
                    </li>
                    <li>
                        <label>审核状态：</label>
                        <select class="selectStyle" name="data[status]" id="status">
                            <option value="0" <if condition="$info.status eq 0">selected</if> >待审核</option>
                            <option value="1" <if condition="$info.status eq 1">selected</if> >审核通过</option>
                        </select>
                    </li>
                    <li>
                        <input type="hidden" name="data[id]" value="{$info.id}">
                        <input type="hidden" name="original" value="{$group.id}">
                    </li>
                    <li>
                        <label></label>
                        <input type="submit" value="提 交" class="btnStyle">
                    </li>
                </ul>
            </div>
            </form>
        </div>
    </div>
</div>
<script src="__S__/js/jquery.validate.js"></script>
<script src="__S__/js/magess.js"></script>
<script src="__S__/js/jquery.metadata.js"></script>
<script type="text/javascript">
    $().ready(function() {
        $("#info_form").validate();
    });

</script>
<script type="text/javascript">
    //自动填充
    $( "#autocomplete" ).autocomplete({
        source: "{:U ('Ajax/autoGroup')}",
        select: function(event, ui){
            $(this).val (ui.item.label);
            $("#gid").val( ui.item.value);
            event.preventDefault();
        },
        response: function( event, ui ) {
            $('#gid').val('0');
        }
    });

</script>
<include file="Public:footer" />